﻿@{var company = ViewBag.Company as CompanyInfo;}
<div class="sy_left">
    <div class="pro_list1">
        <div class="lxtiao">
            <div class="lxtext">产品类别</div>
        </div>
        <div class="blue_boxbg news_qy">
            <div class="tuijian cp_partitions">
                <ul>
                    @{ 
                        var partitions = ViewBag.ProductPartitions as IEnumerable<ProductPartitionInfo>;
                        foreach (var productPartitionInfo in partitions)
                        {
                        <li class="partitions_parent">
                            <a href="@Url.RouteUrl("CPP_company", new { controller = "CCompany",action="CProducts" })?cid=@company.CompanyID&partitionId=@productPartitionInfo.PartitionId" 
                                title="@productPartitionInfo.Name">@productPartitionInfo.Name</a>
                            <ul class="partitions_chlidren_ul">
                                @foreach (var item in productPartitionInfo.Children)
                                {
                                    <li style="padding-left: 10px;" class="partitions_chlidren_li">
                                        <a href="@Url.RouteUrl("CPP_company", new { controller = "CCompany",action="CProducts" })?cid=@company.CompanyID&partitionId=@item.PartitionId">@item.Name</a>
                                    </li>
                                }
                            </ul>
                        </li>
                                                
                        }
                    }
                </ul>
            </div>
        </div>
    </div>
    <div class="pro_list1">
        @{ Html.RenderAction("CContact", "CCompany", new { company = company });}
    </div>
    <div class="pro_list1">
        @{ Html.RenderAction("CLinks", "CCompany", new { cid = company.CompanyID });}
    </div>
</div>
